@import '../../styles/theme.scss';

.screen {
  box-sizing: border-box;
}

.before-primary-lighter:before {
  background-color: $primary-color-dark !important;
}

.menu_page.nav-open .lower-screen {
  -webkit-transform: scale(0.8, 0.8);
  -ms-transform: scale(0.8, 0.8);
  transform: scale(0.8, 0.8);
}

.menu_page.nav-open .nav {
  -webkit-transform: translateY(0);
  transform: translateY(0);
}

.menu_page.nav-open .nav-toggle {
  box-shadow: none;
  background-color: $dark;
}

.menu_page.nav-open .nav-toggle:before {
  width: 200vw;
  height: 200vh;
  border-radius: 0;
  background-color: rgba(255, 255, 255, 0.94) !important;
  overflow: hidden;
}

// .nav-toggle-before-active{
//   border-radius: 0;
//   background-color: rgba(255, 255, 255, 0.62);
// }
.menu_page.nav-open .nav-toggle .icon-toggle {
  width: 0;
}

.menu_page.nav-open .nav-toggle .icon-toggle:before {
  -webkit-transform: translateY(9px) rotate(45deg);
  -ms-transform: translateY(9px) rotate(45deg);
  transform: translateY(9px) rotate(45deg);
}

.menu_page.nav-open .nav-toggle .icon-toggle:after {
  -webkit-transform: translateY(-9px) rotate(-45deg);
  -ms-transform: translateY(-9px) rotate(-45deg);
  transform: translateY(-9px) rotate(-45deg);
}

// .phone {
//   position: fixed;
//   top: 50%;
//   left: 50%;
//   -webkit-transform: translateX(-50%) translateY(-50%);
//       -ms-transform: translateX(-50%) translateY(-50%);
//           transform: translateX(-50%) translateY(-50%);
//   width: 280px;
//   height: 580px;
//   border-radius: 40px;
//   background-color: white;
// }
// .phone .screen {
//   width: 100vw;
//   height: 100vh;
//   background-color: #ECEBE9;
//   display: block;
//   margin: 0auto;
//   overflow: hidden;
//   position: relative;
//   border-radius: 2px;
//   border: 4px solid #262626;
// }
.nav-toggle {
  width: 60px;
  height: 60px;
  z-index: 200000;
  border-radius: 50%;
  margin: 10px;
  position: absolute;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  -webkit-transition-duration: 0.66s;
  transition-duration: 0.66s;
  -webkit-transition-timing-function: swing;
  transition-timing-function: swing;
}

.nav-toggle:before {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: $primary-color;
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%) translateY(-50%);
  -ms-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
  -webkit-transition-duration: 0.66s;
  transition-duration: 0.66s;
  -webkit-transition-timing-function: swing;
  transition-timing-function: swing;
}

.nav-toggle .icon-toggle {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  position: absolute;
  top: 28px;
  left: 15px;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
  transiting-timing-function: swing;
}

.nav-toggle .icon-toggle:before,
.nav-toggle .icon-toggle:after {
  width: 30px;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  content: "";
  position: absolute;
  left: 0;
  -webkit-transition-duration: 0.5s;
  transition-duration: 0.5s;
  -webkit-transition-timing-function: swing;
  transition-timing-function: swing;
}

.nav-toggle .icon-toggle:before {
  top: -9px;
}

.nav-toggle .icon-toggle:after {
  top: 9px;
}

.lower-screen {
  padding: 60px 0 20px 0;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  // height: 100vh;
  -webkit-transition-duration: 0.66s;
  transition-duration: 0.66s;
  -webkit-transition-timing-function: swing;
  transition-timing-function: swing;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}

.lower-screen::-webkit-scrollbar {
  display: none;
}

.nav {
  position: absolute;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  top: 80px;
  bottom: 80px;
  left: -10px;
  // width: 100%;
  height: calc(100vh - 200px);
  z-index: 200001;
  padding: 24px 20px;
  box-sizing: border-box;
  // display: flex;
  // flex-wrap: wrap;
  -webkit-transition-duration: 0.66s;
  transition-duration: 0.66s;
  -webkit-transition-timing-function: swing;
  transition-timing-function: swing;
  transform: translateX(-100vw);
  width: 100%;

  .nav-wrapper {
    padding-bottom: 12px;
    height: 100%;
    width: 100%;
  }

  .menu_box_tab_tag {
    display: inline-block;
    box-sizing: border-box;
    height: 72px;
    line-height: 72px;
    padding: 0 32px;
    font-size: 32px;
    border-radius: 28px;
    background: #f4f4f4;
    color: #8c8c8c;
    transition: all .3s;
    margin-right: 24px;
    margin-bottom: 24px;
    border: 1px solid $primary-color;
    color: $primary-color;
  }

  .menu_box_tab_tag_active {
    // background:$primary-color;
    // color: $primary-color;
  }
}
